<?php

class Checkbox extends PageElement
{
	private $checked = false;


	public function Checkbox()
	{
	}

		public function setChecked($isChecked)
	{
		$this->checked = $isChecked;
	}


	public function getHTML()
	{
		$checkedText="";
		if($this->checked)
			$checkedText=" checked=\"checked\" ";

		$html = "<input type=\"checkbox\"".parent::getHTML().$checkedText.">".$this->text."</input>\n";
		return $html;
	}

}

?>
